<template>
  <div>
    <h1>测试组件</h1>
  </div>
</template>

<script>
export default {
  directives: {
    abc: {
      bind(el) {
        console.log(el);
      },
      //数据更新以后，子组件的数据不一定更新
      update(el) {
        console.log(el);
      },
    },
  },
};
</script>

<style scoped>
div {
  height: 200px;
  background-color: beige;
}
</style>